﻿using FluentMigrator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.DbMigrations.V20140524
{
    [Migration(2014052509)]
    public class _03_FeatureBannerInit : AutoReversingMigration
    {
        public override void Up()
        {
            var now = DateTime.Now;
            Insert.IntoTable("FeatureBanner")
           .Row(new { FeatureBannerId = Guid.NewGuid().ToString(), Content = "测试横幅1", UploadFileId = Guid.NewGuid().ToString(), CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FeatureBannerId = Guid.NewGuid().ToString(), Content = "测试横幅2", UploadFileId = Guid.NewGuid().ToString(), CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FeatureBannerId = Guid.NewGuid().ToString(), Content = "测试横幅3", UploadFileId = Guid.NewGuid().ToString(), CreateDate = now, ModifyDate = now, IsDelete = 0 });

        }
    }
}
